//-----------------------------------------------------------------------------
//
// @file	Utils.cpp
// @brief	Utils file
// @author	Vinod Melapudi
// @date	20Feb2010
//
//-----------------------------------------------------------------------------

#include <stdio.h>

#include "Utils.h"

std::vector<std::string> GetStringTokens( const char* str_, const char* delimiter )
{
	char* str = new char[ strlen(str_) ];
	strcpy( str, str_ );
	char* token = strtok( str, delimiter );
	std::vector<std::string> tokens;
	while( token != NULL )
	{
		tokens.push_back( token );
		token = strtok( NULL, delimiter );
	}

	return tokens;
}
